home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Talker / Sources / Include / TalkerFrm.h < prev    next >
Encoding:
Text File  |  1995-10-11  |  2.0 KB  |  72 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer. All rights reserved.
  2. //    Release Version:    $ ODF 1.0 d11 $
  3.  
  4. #ifndef _TALKERFRAME_
  5. #define _TALKERFRAME_
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. #ifndef FWTIME_H
  14. #include "FWTime.h"            // FW_CTime
  15. #endif
  16.  
  17. #ifndef FWRECT_H
  18. #include <FWRect.h>            // FW_CRect
  19. #endif
  20.  
  21. // ----- OS Layer -----
  22. #ifndef FWEVENT_H
  23. #include "FWEvent.h"        // FW_CMouseEvent
  24. #endif
  25.  
  26. //=======================================================================
  27. class FW_CLASS_ATTR CTalkerPart;
  28. class FW_CLASS_ATTR FW_CMenuEvent;
  29. class FW_CLASS_ATTR FW_CPictureShape; 
  30. class FW_CLASS_ATTR DevUniv_STalker;
  31.  
  32. //=======================================================================
  33. class FW_CLASS_ATTR CTalkerFrame : public FW_CFrame {
  34. public:
  35.                         CTalkerFrame(Environment* ev, 
  36.                                     ODFrame* odFrame, 
  37.                                     FW_CPresentation* presentation, 
  38.                                     CTalkerPart* talkerPart);
  39.     virtual             ~CTalkerFrame();
  40. protected:
  41. // overrides
  42.     virtual void        Draw(Environment *ev, 
  43.                              ODFacet* odFacet, 
  44.                              ODShape* invalidShape);
  45.     virtual void        FrameShapeChanged(Environment* ev);
  46.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  47.                                       FW_CMenuBar* menuBar, 
  48.                                       FW_Boolean hasMenuFocus,
  49.                                       FW_Boolean isRoot);
  50.     virtual FW_Boolean    DoMenu(Environment* ev,
  51.                                const FW_CMenuEvent& theMenuEvent);
  52.     virtual FW_Boolean     DoMouseDown(Environment* ev, 
  53.                                 const FW_CMouseEvent& theMouseEvent);
  54. #ifdef FW_BUILD_MAC
  55.     virtual ODDragResult CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
  56. #endif
  57. // new members
  58. public:
  59.     virtual void         MySayText(Environment* ev);
  60. protected:
  61.     virtual void         MyInitTalker(Environment* ev);
  62.     virtual void         MyInitPicture(Environment* ev);
  63. private:
  64.     CTalkerPart*         fTalkerPart;
  65.     FW_CRect             fFrameRect;
  66.     FW_CPictureShape*    fPictShape;            // Mr. Pizza
  67.     DevUniv_STalker*    fSOMTalker;            // SOM object for speech synthesis
  68. };
  69.  
  70. //=======================================================================
  71. #endif
  72.